package com.example.shoporder.feign.fallback;

import com.example.shopbean.bean.Product;
import com.example.shoporder.feign.ProductService;
import com.example.shoputils.resp.Result;
import org.springframework.stereotype.Component;

//@Component
//public class ProductServiceFallBack implements ProductService {
//    @Override
//    public Product getProduct(Long pid) {
//        Product product = new Product();
//        product.setId(-1L);
//        return product;
//    }
//    @Override
//    public Result<Integer> updateCount(Long pid, Integer count) {
//        Result<Integer> result = new Result<>();
//        result.setCode(1001);
//        result.setCodeMsg("触发了容错逻辑");
//        return result;
//    }
//}
